import request from '@/utils/request'

export function listWard(query) {
  return request({
    url: '/api/v1/wardlist',
    method: 'get',
    params: query
  })
}

export function getWard(wardId) {
  return request({
    url: '/api/v1/ward/' + wardId,
    method: 'get'
  })
}

export function addWard(data) {
  return request({
    url: '/api/v1/ward',
    method: 'post',
    data: data
  })
}

export function updateWard(data) {
  return request({
    url: '/api/v1/ward',
    method: 'put',
    data: data
  })
}

export function delWard(wardId) {
  return request({
    url: '/api/v1/ward/' + wardId,
    method: 'delete'
  })
}

